package com.meida.module.bus.client.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.meida.common.mybatis.annotation.TableAlias;

/**
 * VIEW
 *
 * @author flyme
 * @date 2020-12-01
 */
@Data
@Accessors(chain = true)
@TableName("bus_rec_delivery_view")
@TableAlias("brdv")
@ApiModel(value = "BusRecDeliveryView对象", description = "VIEW")
public class BusRecDeliveryView {

    private static final long serialVersionUID = 1L;

    @TableId(value = "purchaseDetailsId")
    @ApiModelProperty(value = "材料申请明细ID")
    private Long purchaseDetailsId;

    @ApiModelProperty(value = "材料计划关联明细ID")
    private Long busMaterialSrmId;

    @ApiModelProperty(value = "项目ID")
    private Long projectId;

    @ApiModelProperty(value = "项目编码")
    private String projectCode;

    @ApiModelProperty(value = "项目名称")
    private String projectName;

    @ApiModelProperty(value = "专业代码")
    private String majorCode;

    @ApiModelProperty(value = "专业名称")
    private String majorName;

    @ApiModelProperty(value = "工程包代码")
    private String packageNo;

    @ApiModelProperty(value = "工程包名称")
    private String packageName;

    @ApiModelProperty(value = "操作用户")
    private Long userId;

    @ApiModelProperty(value = "材料申请人")
    private String userName;

    @ApiModelProperty(value = "材料申请时间")
    private Date createTime;

    @ApiModelProperty(value = "本次采购数量")
    private BigDecimal purchaseNum;

    @ApiModelProperty(value = "在途数量")
    private BigDecimal onLineNum;

    @ApiModelProperty(value = "到货数量")
    private BigDecimal receiveNum;

    @ApiModelProperty(value = "需求计划日期")
    private String receivedDate;

    private Long vendorId;

    @ApiModelProperty(value = "供应商编码")
    private String supplierCode;

    @ApiModelProperty(value = "供应商名称")
    private String supplierName;

    @ApiModelProperty(value = "预留号")
    private String reserveNo;

    @ApiModelProperty(value = "预留行号")
    private Integer reserveRow;

    @ApiModelProperty(value = "出库数量")
    @TableField(exist = false)
    private BigDecimal recNumThis;

    @ApiModelProperty(value = "材料WBS代码")
    private String materialWbsCode;

    @ApiModelProperty(value = "物料代码")
    private String materialCode;

    @ApiModelProperty(value = "累计领量")
    private BigDecimal recNumThisSum;

    @ApiModelProperty(value = "可领量")
    private BigDecimal recNumSurplus;

    @ApiModelProperty(value = "已出库量")
    private BigDecimal recNumFish;

    @ApiModelProperty(value = "材料计划表ID")
    private Long materialPlanId;

    @ApiModelProperty(value = "材料主表ID")
    private Long materialId;

    @ApiModelProperty(value = "设备、材料名称")
    private String materialName;

    @ApiModelProperty(value = "型号/规格")
    private String materiaSpecs;

    @ApiModelProperty(value = "技术参数或技术说明")
    private String technicalData;

    @ApiModelProperty(value = "层级号")
    private String levelNo;

    @ApiModelProperty(value = "区域")
    private String materialArea;

    @ApiModelProperty(value = "系统")
    private String materialUse;

    @ApiModelProperty(value = "计量单位")
    private String measurementUnit;

}
